<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core">
    <h:head> 
        <h:outputStylesheet name="css/tablas.css"/>
    </h:head>
    <h:body>
   <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <div align="center">LISTADO ACCIDENTES</div>
        </ui:define>
        <ui:define name="body">
            <div align="center">
            <h:form styleClass="jsfcrud_list_form">
                <h:panelGroup id="messagePanel" layout="block">
                    <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
                </h:panelGroup>
                 <h:outputText value="#{accidenteController.pagination.pageFirstItem + 1}..#{accidenteController.pagination.pageLastItem + 1}/#{accidenteController.pagination.itemsCount}"/>&nbsp;
                    <h:commandLink action="#{accidenteController.previous}" value="#{bundle.Previous} #{accidenteController.pagination.pageSize}" rendered="#{accidenteController.pagination.hasPreviousPage}"/>&nbsp;
                    <h:commandLink action="#{accidenteController.next}" value="#{bundle.Next} #{accidenteController.pagination.pageSize}" rendered="#{accidenteController.pagination.hasNextPage}"/>&nbsp;
                    <h:dataTable id="box-table-a" value="#{accidenteController.items}" var="item"    >
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListAccidenteTitle_id}"/>
                            </f:facet>
                            <h:outputText value="#{item.id}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListAccidenteTitle_descripcion}"/>
                            </f:facet>
                            <h:outputText value="#{item.descripcion}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListAccidenteTitle_fichaid}"/>
                            </f:facet>
                            <h:outputText value="#{item.fichaid}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="&nbsp;"/>
                            </f:facet>
                            <h:commandLink action="#{accidenteController.prepareView}" value="#{bundle.ListAccidenteViewLink}"/>
                            <h:outputText value=" "/>
                            <h:commandLink action="#{accidenteController.prepareEdit}" value="#{bundle.ListAccidenteEditLink}"/>
                            <h:outputText value=" "/>
                            <h:commandLink action="#{accidenteController.destroy}" value="#{bundle.ListAccidenteDestroyLink}"/>
                        </h:column>
                    </h:dataTable>
                
                <br />
                <h:commandLink action="#{accidenteController.prepareCreate}" value="#{bundle.ListAccidenteCreateLink}"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.ListAccidenteIndexLink}"/>
            </h:form>
            </div>
        </ui:define>
       </ui:composition>
 <div id="footer" align="center"><p class="copy">&copy; Copyright 2014 Empresa XYZ. All rights reserved</p></div>
   </h:body>
    
    
</html>
